import request from '@/utils/request'

// 商品分类获取
export function getcarousel(){
  return request({
    url:'/wx/goods/category',
    method:'get'
  })
}

// 商品列表 动态
export function goodlist(params){
  return request({
    url:'/wx/goods/list',
    method:'get',
    params:params
  })
}

// 商品详情
export function gooddetail(params){
  return request({
    url:'/wx/goods/detail',
    method:'get',
    params:params
  })
}

// 底部
export function footdel(params){
  return request({
    url:'/wx/xconfig/queryConfigById',
    method:'get',
    params:params
  })
}

// 轮播banner图
export function getBanner(params){
  return request({
    url:'/wx/bannerConfig/queryBannerByType',
    method:'get',
    params:params
  })
}

// 首页视频接口
export function getVedio(){
  return request({
    url:'/wx/videoconfig/queryVideo',
    method:'get',
  })
}

// 首页爆炸接口
export function getBao(){
  return request({
    url:'/wx/ad/queryAdByPositionId?id=2',
    method:'get',
  })
}

// 最新推荐数据
export function hotSellRecommend(params){
  return request({
    url:'/wx/hotSellingGoods/queryGoodsList',
    method:'get',
    params:params
  })
}

// 首页消息推送
export function messagepush(params){
  return request({
    url:'/wx/goodpush/list?page='+params+'&limit=1',
    method:'get',
  })
}

// 判断用户是否是游客
export function checkUser(params){
  return request({
    url:'/wx/checkUser?userId='+params,
    method:'get',
  })
}